package cn.chinasyq.photoquan.user.activity;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.TextView;

import cn.chinasyq.photoquan.R;
import cn.master.util.utils.PackageUtil;


/** * 关于我们 */
public class AboutActivity extends Activity implements OnClickListener {
	private TextView  tvVersion;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		super.setContentView(R.layout.activity_about_us);
		initComponent();
		initData();
	}

	private void initComponent() {
		tvVersion = (TextView) findViewById(R.id.tv_version);
	}

	private void initData() {
		tvVersion.setText(getString(R.string.version)
				+ PackageUtil.getApplicationVersionName(this) + "");
	}

	@Override
	public void onClick(View v) {
		switch (v.getId()) {
		case R.id.ibtn_back:
			finish();
			break;
		default:
			break;
		}
	}
}